extends RigidBody2D

@export var area : Area2D
@export var collision_shape_2d: CollisionShape2D

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass


func _on_area_2d_body_entered(body: Node2D) -> void:
	#print(name, ", ", body.name)
	#if body == self: 
		#return
	#angular_velocity = 20 * randf_range(-1, 1)
	pass # Replace with function body.


func _on_area_2d_body_shape_entered(body_rid: RID, body: Node2D, body_shape_index: int, local_shape_index: int) -> void:
	#print(name, ", ", body.name)
	#if body == self: 
		#return
	#angular_velocity = 20 * randf_range(-1, 1)
	pass # Replace with function body.
